#include "goods.h"

goods::goods()
{

}

goods::goods(const QString &num, const QString &name, const double costPrice,
             const double salePrice, const int repertory,const int buyinNum)
             :num(num),
               name(name),
               costPrice(costPrice),
               salePrice(salePrice),
               buyinNum(buyinNum),
               repertory(repertory)

{

}

QString goods::getName() const
{
    return name;
}

QString goods::getnum() const
{
    return num;
}

double goods::getCostPrice() const
{
    return costPrice;
}

double goods::getSalePrice() const
{
    return salePrice;
}



int goods::getRepertory() const
{
    return repertory;
}

int goods::getBuyinNum() const
{
    return buyinNum;
}

void goods::setBuyinNum(int value)
{
    buyinNum = value;
}

void goods::setRepertory(int value)
{
    repertory = value;
}

